package com.vhans.db.model.dto.quiz;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 题目DTO
 *
 * @author vhans
 */
@Data
@ApiModel(description = "题目DTO")
public class QuizDTO {
    /**
     * 题目id
     */
    @ApiModelProperty(value = "题目id")
    private Integer id;

    /**
     * 提问者id
     */
    @ApiModelProperty(value = "提问者id")
    private Integer userId;

    /**
     * 题目标题
     */
    @NotBlank(message = "题目标题不能为空")
    @ApiModelProperty(value = "题目标题")
    private String title;

    /**
     * 标签名
     */
    @ApiModelProperty(value = "标签名")
    private List<String> tagNameList;

    /**
     * 题目内容
     */
    @NotBlank(message = "题目内容不能为空")
    @ApiModelProperty(value = "题目内容")
    private String content;

    /**
     * 题目图片
     */
    @ApiModelProperty(value = "题目图片")
    private String images;

    /**
     * 是否解答 (0否 1是)
     */
    @ApiModelProperty(value = "是否解答 (0否 1是)")
    private Integer isSolve;

    /**
     * 是否通过 (0否 1是)
     */
    @ApiModelProperty(value = "是否通过 (0否 1是)")
    private Integer isCheck;
}
